package com.senlingspace.system.mapper;

import com.senlingspace.system.domain.SlkjOrderStatusLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单状态日志Mapper
 *
 * @author lebronjames
 * @date 2024/07/30
 */
public interface SlkjOrderStatusLogMapper {

    int insert(SlkjOrderStatusLog slkjOrderStatusLog);

    SlkjOrderStatusLog findById(Long id);

    List<SlkjOrderStatusLog> findByOrderId(Long orderId);

    List<SlkjOrderStatusLog> findByOrderIds(@Param("orderIds") List<Long> orderIds);

    long batchInsert(@Param("statusLogs") List<SlkjOrderStatusLog> statusLogs);

    int deleteByOrderId(@Param("orderId") Long orderId);

}
